package net.idugic.rpc.socket.common;

import java.io.Serializable;

public class RPCRequest implements Serializable {

	private static final long serialVersionUID = -1524583101581651798L;

	private String remoteCall = null;

	private Object[] parameters = null;

	public RPCRequest(String remoteCall, Object... parameters) {
		this.remoteCall = remoteCall;
		this.parameters = parameters;
	}

	public String getRemoteCall() {
		return remoteCall;
	}

	public void setRemoteCall(String remoteCall) {
		this.remoteCall = remoteCall;
	}

	public Object[] getParameters() {
		return parameters;
	}

	public void setParameters(Object[] parameters) {
		this.parameters = parameters;
	}

	public String toString() {
		String string = remoteCall + " [";
		for (int i = 0; i < parameters.length; i++) {
			string += parameters[i] + " ";
		}
		string += "] ";
		return string;
	}
}
